package com.mmal.example.publish;

import lombok.extern.slf4j.Slf4j;

import java.util.Arrays;

/**
 * Created by sigurHe
 * Date:2019/10/7.
 * Time:12:11.
 */
@Slf4j
public class UnSafePublish {

    private String[] states={"a", "b", "c"};

    public String[] getStates(){
        return states;
    }


    public static void main(String[] args) {
        UnSafePublish unSafePublish = new UnSafePublish();
        log.info("{}", Arrays.toString(unSafePublish.getStates()));
        unSafePublish.getStates()[0]="d";
        log.info("{}", Arrays.toString(unSafePublish.getStates()));

    }
}
